function removeHtmlTag(l,h)
	{
	for(var e=l.split("<"),f=0;
	f<e.length;
	f++)-1!=e[f].indexOf(">")&&(e[f]=e[f].substring(e[f].indexOf(">")+1,e[f].length));
	e=e.join("");
	return e.substring(0,h-1)
}
function labelposts(l)
	{
	j=showRandomImg?Math.floor((imgr.length+1)*Math.random()):0;
	img=[];
	for(var h=0;
	h<labelnumposts;
	h++)
		{
		var e=l.feed.entry[h],f=e.title.$t,k;
		if(h==l.feed.entry.length)break;
		for(var g=0;
		g<e.link.length;
		g++)if("alternate"==e.link[g].rel)
			{
			k=e.link[g].href;
			break
		}
		for(g=0;
		g<e.link.length;
		g++)if("replies"==e.link[g].rel&&"text/html"==e.link[g].type)
			{
			e.link[g].title.split(" ");
			break
		}
		g="content"in e?e.content.$t:"summary"in e?e.summary.$t:"";
		postdate=e.published.$t;
		j>imgr.length-1&&(j=0);
		img[h]=imgr[j];
		s=g;
		a=s.indexOf("<img");
		b=s.indexOf('src="',a);
		c=s.indexOf('"',b+5);
		d=s.substr(b+5,c-b-5);
		-1!=a&&-1!=b&&-1!=c&&""!=d&&(img[h]=d);
		e=[1,2,3,4,5,6,7,8,9,10,11,12];
		postdate.split("-")[2].substring(0,2);
		g=postdate.split("-")[1];
		postdate.split("-");
		for(var m=0;
		m<e.length&&parseInt(g)!=e[m];
		m++);
		f=h%2?'<div class="labelposts evenPosts"><a href="'+f+'"><img title="'+f+'" alt="'+f+'" src="'+img[h]+'" /></a><h3><a title="'+f+'" alt="'+f+'" href="'+k+'">'+f+"</a></h3><p>"+removeHtmlTag(s,lsumposts)+'... <a class="doctiep" title="'+f+'" alt="'+f+'" href="'+k+'">Chi ti\u1ebft &#187;
		</a></p><div class="clear"></div></div><div class="line-border"></div>':'<div class="labelposts oddPosts"><a href="'+f+'"><img title="'+f+'" alt="'+f+'" src="'+img[h]+'" /></a><h3><a title="'+f+'" alt="'+f+'" href="'+k+'">'+f+"</a></h3><p>"+removeHtmlTag(s,lsumposts)+'... <a class="doctiep" title="'+f+'" alt="'+f+'" href="'+k+'">Chi ti\u1ebft &#187;
		</a></p><div class="clear"></div></div><div class="line-border"></div>';
		document.write(f);
		j++
	}
};
